package com.zhuhao.design_mode.behavioral_pattern.mediator;

// 测试类
public class Test {
    public static void main(String[] args) {
        Mediator mediator = new ConcreteMediator();
        ConcreteColleagueA colleagueA = new ConcreteColleagueA(mediator);
        ConcreteColleagueB colleagueB = new ConcreteColleagueB(mediator);
        colleagueA.mediator.transferB();
        System.out.println("-------------------------");
        colleagueB.mediator.transferA();
    }
}
